//
//  ProductCell.m
//  ai2ban
//
//  Created by Heartbeats on 2018/2/26.
//  Copyright © 2018年 mac book pro. All rights reserved.
//

#import "ProductCell.h"


@interface ProductCell()
@property (weak, nonatomic) IBOutlet UIImageView *productImgV;
@property (weak, nonatomic) IBOutlet UILabel *productNameLab;

@end

@implementation ProductCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.productImgV.layer.cornerRadius = 12;
    self.productImgV.clipsToBounds = true;
    self.productNameLab.layer.cornerRadius = 6;
    self.productNameLab.clipsToBounds = true;
}
- (void)setProductDict:(NSDictionary *)productDict {
    _productDict = productDict;
    [self.productImgV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", ImageBaseUrl, productDict[@"picImg"]]] placeholderImage:nil];
    self.productNameLab.text = [NSString stringWithFormat:@"  @%@   ", productDict[@"userName"]];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
